/*************************************************************************
  > File Name: string.cpp
  > Author: 16hxliang3
  > Mail: 16hxliang3@stu.edu.cn 
  > Created Time: Sat 28 May 2022 11:21:24 AM CST
 ************************************************************************/

#include <iostream>
#include <string>
class MultipleBitsRefVar {
   public:
      MultipleBitsRefVar(): _refVarName( "" ), _hasX( false ), _width( 0 ) { ; }
      ~MultipleBitsRefVar() { ; }

      void refVarName( std::string& name ) { _refVarName = name; }
      const std::string& refVarName() const { return _refVarName; }

      void hasX( bool& hasX ) { _hasX = hasX; }
      const bool& hasX() const { return _hasX; }

      void width( uint32_t& width ) { _width = width; }
      const uint32_t& width() const { return _width; }

   private:
      std::string _refVarName;   // Referenced Variable Name
      bool _hasX;                // Are there x or z?
      uint32_t _width;
};
int main() {
   std::string s = "Hello";
   std::cout << s.find( "\\" ) << std::endl;
   std::cout << "." << std::endl;
}
